package cn.hxt.system.service.impl;

import cn.hxt.basic.service.impl.BaseServiceImpl;
import cn.hxt.system.domain.Type;
import cn.hxt.system.mapper.DetailMapper;
import cn.hxt.system.mapper.TypeMapper;
import cn.hxt.system.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TypeServiceImpl extends BaseServiceImpl<Type> implements ITypeService {

    @Autowired
    private TypeMapper typeMapper;

    @Autowired
    private DetailMapper detailMapper;

    @Override
    public void delete(Long id) {

        detailMapper.deleteTwo(id);
        typeMapper.delete(id);
    }
}
